package zouhaotian.rbac.domain.vo;

import zouhaotian.rbac.util.DateTimeUtils;

import java.time.LocalDateTime;

/**
 * 视图对象类型-部门
 *
 * @auther 邹昊天
 * @since 2025/6/19 23:13
 */
public class Deptvo extends Basevo {


    /**
     * 部门名称
     */
    public String name;

    /**
     *
     * 部门电话
     */
    public String phone;

    public Deptvo() {
    }

    public Deptvo(Integer id, LocalDateTime createAt, LocalDateTime updateAt,
                  String name, String phone) {
        super(id, createAt, updateAt);
        this.name = name;
        this.phone = phone;
    }

    @Override
    public String toString() {
        return String.format("ID:%d, 名称:%s, 电话: %s, 更新时间: %s", id, name, phone, DateTimeUtils.format(updateAt));
    }
}
